<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkEntry</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="NumericEntry.html" title="数字/文本数据输入项">
<link rel="prev" href="NumericEntry.html" title="数字/文本数据输入项">
<link rel="next" href="gtk3-GtkEntryBuffer.html" title="GtkEntryBuffer">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="NumericEntry.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="NumericEntry.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkEntryBuffer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkEntry.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkEntry.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkEntry"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkEntry.top_of_page"></a>GtkEntry</span></h2>
<p>GtkEntry — A single line text entry field</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkEntry.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry">GtkEntry</a>;
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkEntry.html#gtk-entry-new" title="gtk_entry_new ()">gtk_entry_new</a>                       (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkEntry.html#gtk-entry-new-with-buffer" title="gtk_entry_new_with_buffer ()">gtk_entry_new_with_buffer</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntryBuffer.html#GtkEntryBuffer" title="struct GtkEntryBuffer"><span class="type">GtkEntryBuffer</span></a> *buffer</code></em>);
<a class="link" href="gtk3-GtkEntryBuffer.html#GtkEntryBuffer" title="struct GtkEntryBuffer"><span class="returnvalue">GtkEntryBuffer</span></a> *    <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-buffer" title="gtk_entry_get_buffer ()">gtk_entry_get_buffer</a>                (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-buffer" title="gtk_entry_set_buffer ()">gtk_entry_set_buffer</a>                (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntryBuffer.html#GtkEntryBuffer" title="struct GtkEntryBuffer"><span class="type">GtkEntryBuffer</span></a> *buffer</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-text" title="gtk_entry_set_text ()">gtk_entry_set_text</a>                  (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-text" title="gtk_entry_get_text ()">gtk_entry_get_text</a>                  (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<a href="../glib/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>             <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-text-length" title="gtk_entry_get_text_length ()">gtk_entry_get_text_length</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-text-area" title="gtk_entry_get_text_area ()">gtk_entry_get_text_area</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *text_area</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-visibility" title="gtk_entry_set_visibility ()">gtk_entry_set_visibility</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> visible</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-invisible-char" title="gtk_entry_set_invisible_char ()">gtk_entry_set_invisible_char</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> ch</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-unset-invisible-char" title="gtk_entry_unset_invisible_char ()">gtk_entry_unset_invisible_char</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-max-length" title="gtk_entry_set_max_length ()">gtk_entry_set_max_length</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-activates-default" title="gtk_entry_get_activates_default ()">gtk_entry_get_activates_default</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-has-frame" title="gtk_entry_get_has_frame ()">gtk_entry_get_has_frame</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
const <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="returnvalue">GtkBorder</span></a> *   <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-inner-border" title="gtk_entry_get_inner_border ()">gtk_entry_get_inner_border</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-width-chars" title="gtk_entry_get_width_chars ()">gtk_entry_get_width_chars</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-activates-default" title="gtk_entry_set_activates_default ()">gtk_entry_set_activates_default</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-has-frame" title="gtk_entry_set_has_frame ()">gtk_entry_set_has_frame</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-inner-border" title="gtk_entry_set_inner_border ()">gtk_entry_set_inner_border</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> *border</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-width-chars" title="gtk_entry_set_width_chars ()">gtk_entry_set_width_chars</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_chars</code></em>);
<a href="../glib/glib-Unicode-Manipulation.html#gunichar"><span class="returnvalue">gunichar</span></a>            <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-invisible-char" title="gtk_entry_get_invisible_char ()">gtk_entry_get_invisible_char</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-alignment" title="gtk_entry_set_alignment ()">gtk_entry_set_alignment</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> xalign</code></em>);
<a href="../glib/glib-Basic-Types.html#gfloat"><span class="returnvalue">gfloat</span></a>              <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-alignment" title="gtk_entry_get_alignment ()">gtk_entry_get_alignment</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-overwrite-mode" title="gtk_entry_set_overwrite_mode ()">gtk_entry_set_overwrite_mode</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> overwrite</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-overwrite-mode" title="gtk_entry_get_overwrite_mode ()">gtk_entry_get_overwrite_mode</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<a href="../pango/pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> *       <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-layout" title="gtk_entry_get_layout ()">gtk_entry_get_layout</a>                (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-layout-offsets" title="gtk_entry_get_layout_offsets ()">gtk_entry_get_layout_offsets</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-layout-index-to-text-index" title="gtk_entry_layout_index_to_text_index ()">gtk_entry_layout_index_to_text_index</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> layout_index</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-text-index-to-layout-index" title="gtk_entry_text_index_to_layout_index ()">gtk_entry_text_index_to_layout_index</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> text_index</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-max-length" title="gtk_entry_get_max_length ()">gtk_entry_get_max_length</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-visibility" title="gtk_entry_get_visibility ()">gtk_entry_get_visibility</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-completion" title="gtk_entry_set_completion ()">gtk_entry_set_completion</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntryCompletion.html#GtkEntryCompletion" title="struct GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a> *completion</code></em>);
<a class="link" href="gtk3-GtkEntryCompletion.html#GtkEntryCompletion" title="struct GtkEntryCompletion"><span class="returnvalue">GtkEntryCompletion</span></a> * <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-completion" title="gtk_entry_get_completion ()">gtk_entry_get_completion</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-cursor-hadjustment" title="gtk_entry_set_cursor_hadjustment ()">gtk_entry_set_cursor_hadjustment</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a> *adjustment</code></em>);
<a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-cursor-hadjustment" title="gtk_entry_get_cursor_hadjustment ()">gtk_entry_get_cursor_hadjustment</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-progress-fraction" title="gtk_entry_set_progress_fraction ()">gtk_entry_set_progress_fraction</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> fraction</code></em>);
<a href="../glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>             <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-progress-fraction" title="gtk_entry_get_progress_fraction ()">gtk_entry_get_progress_fraction</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-progress-pulse-step" title="gtk_entry_set_progress_pulse_step ()">gtk_entry_set_progress_pulse_step</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> fraction</code></em>);
<a href="../glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>             <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-progress-pulse-step" title="gtk_entry_get_progress_pulse_step ()">gtk_entry_get_progress_pulse_step</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-progress-pulse" title="gtk_entry_progress_pulse ()">gtk_entry_progress_pulse</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkEntry.html#gtk-entry-im-context-filter-keypress" title="gtk_entry_im_context_filter_keypress ()">gtk_entry_im_context_filter_keypress</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-reset-im-context" title="gtk_entry_reset_im_context ()">gtk_entry_reset_im_context</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
enum                <a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition">GtkEntryIconPosition</a>;
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-from-pixbuf" title="gtk_entry_set_icon_from_pixbuf ()">gtk_entry_set_icon_from_pixbuf</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code><a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-from-stock" title="gtk_entry_set_icon_from_stock ()">gtk_entry_set_icon_from_stock</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-from-icon-name" title="gtk_entry_set_icon_from_icon_name ()">gtk_entry_set_icon_from_icon_name</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-from-gicon" title="gtk_entry_set_icon_from_gicon ()">gtk_entry_set_icon_from_gicon</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code><a href="../gio/GIcon.html"><span class="type">GIcon</span></a> *icon</code></em>);
<a class="link" href="gtk3-GtkImage.html#GtkImageType" title="enum GtkImageType"><span class="returnvalue">GtkImageType</span></a>        <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-icon-storage-type" title="gtk_entry_get_icon_storage_type ()">gtk_entry_get_icon_storage_type</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);
<a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-icon-pixbuf" title="gtk_entry_get_icon_pixbuf ()">gtk_entry_get_icon_pixbuf</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-icon-stock" title="gtk_entry_get_icon_stock ()">gtk_entry_get_icon_stock</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-icon-name" title="gtk_entry_get_icon_name ()">gtk_entry_get_icon_name</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);
<a href="../gio/GIcon.html"><span class="returnvalue">GIcon</span></a> *             <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-icon-gicon" title="gtk_entry_get_icon_gicon ()">gtk_entry_get_icon_gicon</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-activatable" title="gtk_entry_set_icon_activatable ()">gtk_entry_set_icon_activatable</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> activatable</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-icon-activatable" title="gtk_entry_get_icon_activatable ()">gtk_entry_get_icon_activatable</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-sensitive" title="gtk_entry_set_icon_sensitive ()">gtk_entry_set_icon_sensitive</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> sensitive</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-icon-sensitive" title="gtk_entry_get_icon_sensitive ()">gtk_entry_get_icon_sensitive</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-icon-at-pos" title="gtk_entry_get_icon_at_pos ()">gtk_entry_get_icon_at_pos</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-tooltip-text" title="gtk_entry_set_icon_tooltip_text ()">gtk_entry_set_icon_tooltip_text</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *tooltip</code></em>);
<a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-icon-tooltip-text" title="gtk_entry_get_icon_tooltip_text ()">gtk_entry_get_icon_tooltip_text</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-tooltip-markup" title="gtk_entry_set_icon_tooltip_markup ()">gtk_entry_set_icon_tooltip_markup</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *tooltip</code></em>);
<a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-icon-tooltip-markup" title="gtk_entry_get_icon_tooltip_markup ()">gtk_entry_get_icon_tooltip_markup</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-drag-source" title="gtk_entry_set_icon_drag_source ()">gtk_entry_set_icon_drag_source</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Selections.html#GtkTargetList" title="GtkTargetList"><span class="type">GtkTargetList</span></a> *target_list</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Drag-and-Drop.html#GdkDragAction"><span class="type">GdkDragAction</span></a> actions</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-current-icon-drag-source" title="gtk_entry_get_current_icon_drag_source ()">gtk_entry_get_current_icon_drag_source</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-icon-area" title="gtk_entry_get_icon_area ()">gtk_entry_get_icon_area</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *icon_area</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkEntry.description"></a><h2>Description</h2>
<p>
The <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> widget is a single line text entry
widget. A fairly large set of key bindings are supported
by default. If the entered text is longer than the allocation
of the widget, the widget will scroll so that the cursor
position is visible.
</p>
<p>
When using an entry for passwords and other sensitive information,
it can be put into "password mode" using <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-visibility" title="gtk_entry_set_visibility ()"><code class="function">gtk_entry_set_visibility()</code></a>.
In this mode, entered text is displayed using a 'invisible' character.
By default, GTK+ picks the best invisible character that is available
in the current font, but it can be changed with
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-invisible-char" title="gtk_entry_set_invisible_char ()"><code class="function">gtk_entry_set_invisible_char()</code></a>. Since 2.16, GTK+ displays a warning
when Caps Lock or input methods might interfere with entering text in
a password entry. The warning can be turned off with the
<span class="type">"caps-lock-warning"</span> property.
</p>
<p>
Since 2.16, GtkEntry has the ability to display progress or activity
information behind the text. To make an entry display such information,
use <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-progress-fraction" title="gtk_entry_set_progress_fraction ()"><code class="function">gtk_entry_set_progress_fraction()</code></a> or <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-progress-pulse-step" title="gtk_entry_set_progress_pulse_step ()"><code class="function">gtk_entry_set_progress_pulse_step()</code></a>.
</p>
<p>
Additionally, GtkEntry can show icons at either side of the entry. These
icons can be activatable by clicking, can be set up as drag source and
can have tooltips. To add an icon, use <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-from-gicon" title="gtk_entry_set_icon_from_gicon ()"><code class="function">gtk_entry_set_icon_from_gicon()</code></a> or
one of the various other functions that set an icon from a stock id, an
icon name or a pixbuf. To trigger an action when the user clicks an icon,
connect to the <span class="type">"icon-press"</span> signal. To allow DND operations
from an icon, use <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-drag-source" title="gtk_entry_set_icon_drag_source ()"><code class="function">gtk_entry_set_icon_drag_source()</code></a>. To set a tooltip on
an icon, use <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-tooltip-text" title="gtk_entry_set_icon_tooltip_text ()"><code class="function">gtk_entry_set_icon_tooltip_text()</code></a> or the corresponding function
for markup.
</p>
<p>
Note that functionality or information that is only available by clicking
on an icon in an entry may not be accessible at all to users which are not
able to use a mouse or other pointing device. It is therefore recommended
that any such functionality should also be available by other means, e.g.
via the context menu of the entry.
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkEntry.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkEntry"></a><h3>struct GtkEntry</h3>
<pre class="programlisting">struct GtkEntry {
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-new"></a><h3>gtk_entry_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_entry_new                       (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-new-with-buffer"></a><h3>gtk_entry_new_with_buffer ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_entry_new_with_buffer           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntryBuffer.html#GtkEntryBuffer" title="struct GtkEntryBuffer"><span class="type">GtkEntryBuffer</span></a> *buffer</code></em>);</pre>
<p>
Creates a new entry with the specified text buffer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>The buffer to use for the new <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.18</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-buffer"></a><h3>gtk_entry_get_buffer ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkEntryBuffer.html#GtkEntryBuffer" title="struct GtkEntryBuffer"><span class="returnvalue">GtkEntryBuffer</span></a> *    gtk_entry_get_buffer                (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Get the <a class="link" href="gtk3-GtkEntryBuffer.html#GtkEntryBuffer" title="struct GtkEntryBuffer"><span class="type">GtkEntryBuffer</span></a> object which holds the text for
this widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntryBuffer.html#GtkEntryBuffer" title="struct GtkEntryBuffer"><span class="type">GtkEntryBuffer</span></a> object. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.18</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-buffer"></a><h3>gtk_entry_set_buffer ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_buffer                (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntryBuffer.html#GtkEntryBuffer" title="struct GtkEntryBuffer"><span class="type">GtkEntryBuffer</span></a> *buffer</code></em>);</pre>
<p>
Set the <a class="link" href="gtk3-GtkEntryBuffer.html#GtkEntryBuffer" title="struct GtkEntryBuffer"><span class="type">GtkEntryBuffer</span></a> object which holds the text for
this widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntryBuffer.html#GtkEntryBuffer" title="struct GtkEntryBuffer"><span class="type">GtkEntryBuffer</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.18</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-text"></a><h3>gtk_entry_set_text ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_text                  (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);</pre>
<p>
Sets the text in the widget to the given
value, replacing the current contents.
</p>
<p>
See <a class="link" href="gtk3-GtkEntryBuffer.html#gtk-entry-buffer-set-text" title="gtk_entry_buffer_set_text ()"><code class="function">gtk_entry_buffer_set_text()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td>the new text</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-text"></a><h3>gtk_entry_get_text ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_entry_get_text                  (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Retrieves the contents of the entry widget.
See also <a class="link" href="gtk3-GtkEditable.html#gtk-editable-get-chars" title="gtk_editable_get_chars ()"><code class="function">gtk_editable_get_chars()</code></a>.
</p>
<p>
This is equivalent to:
</p>
<p>
</p>
<div class="informalexample"><pre class="programlisting">
gtk_entry_buffer_get_text (gtk_entry_get_buffer (entry));
</pre></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a pointer to the contents of the widget as a
string. This string points to internally allocated
storage in the widget and must not be freed, modified or
stored.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-text-length"></a><h3>gtk_entry_get_text_length ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a>             gtk_entry_get_text_length           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Retrieves the current length of the text in
<em class="parameter"><code>entry</code></em>. 
</p>
<p>
This is equivalent to:
</p>
<p>
</p>
<div class="informalexample"><pre class="programlisting">
gtk_entry_buffer_get_length (gtk_entry_get_buffer (entry));
</pre></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the current number of characters
in <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>, or 0 if there are none.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-text-area"></a><h3>gtk_entry_get_text_area ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_get_text_area             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *text_area</code></em>);</pre>
<p>
Gets the area where the entry's text is drawn. This function is
useful when drawing something to the entry in a draw callback.
</p>
<p>
If the entry is not realized, <em class="parameter"><code>text_area</code></em> is filled with zeros.
</p>
<p>
See also <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-icon-area" title="gtk_entry_get_icon_area ()"><code class="function">gtk_entry_get_icon_area()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_area</code></em> :</span></p></td>
<td>Return location for the text area. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-visibility"></a><h3>gtk_entry_set_visibility ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_visibility            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> visible</code></em>);</pre>
<p>
Sets whether the contents of the entry are visible or not. 
When visibility is set to <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, characters are displayed 
as the invisible char, and will also appear that way when 
the text in the entry widget is copied elsewhere.
</p>
<p>
By default, GTK+ picks the best invisible character available
in the current font, but it can be changed with
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-invisible-char" title="gtk_entry_set_invisible_char ()"><code class="function">gtk_entry_set_invisible_char()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>visible</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the contents of the entry are displayed
as plaintext</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-invisible-char"></a><h3>gtk_entry_set_invisible_char ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_invisible_char        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> ch</code></em>);</pre>
<p>
Sets the character to use in place of the actual text when
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-visibility" title="gtk_entry_set_visibility ()"><code class="function">gtk_entry_set_visibility()</code></a> has been called to set text visibility
to <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>. i.e. this is the character used in "password mode" to
show the user how many characters have been typed. By default, GTK+
picks the best invisible char available in the current font. If you
set the invisible char to 0, then the user will get no feedback
at all; there will be no text on the screen as they type.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ch</code></em> :</span></p></td>
<td>a Unicode character</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-unset-invisible-char"></a><h3>gtk_entry_unset_invisible_char ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_unset_invisible_char      (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Unsets the invisible char previously set with
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-invisible-char" title="gtk_entry_set_invisible_char ()"><code class="function">gtk_entry_set_invisible_char()</code></a>. So that the
default invisible char is used again.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-max-length"></a><h3>gtk_entry_set_max_length ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_max_length            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max</code></em>);</pre>
<p>
Sets the maximum allowed length of the contents of the widget. If
the current contents are longer than the given length, then they
will be truncated to fit.
</p>
<p>
This is equivalent to:
</p>
<p>
</p>
<div class="informalexample"><pre class="programlisting">
gtk_entry_buffer_set_max_length (gtk_entry_get_buffer (entry), max);
</pre></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>max</code></em> :</span></p></td>
<td>the maximum length of the entry, or 0 for no maximum.
(other than the maximum length of entries.) The value passed in will
be clamped to the range 0-65536.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-activates-default"></a><h3>gtk_entry_get_activates_default ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_entry_get_activates_default     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Retrieves the value set by <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-activates-default" title="gtk_entry_set_activates_default ()"><code class="function">gtk_entry_set_activates_default()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the entry will activate the default widget</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-has-frame"></a><h3>gtk_entry_get_has_frame ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_entry_get_has_frame             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Gets the value set by <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-has-frame" title="gtk_entry_set_has_frame ()"><code class="function">gtk_entry_set_has_frame()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the entry has a beveled frame</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-inner-border"></a><h3>gtk_entry_get_inner_border ()</h3>
<pre class="programlisting">const <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="returnvalue">GtkBorder</span></a> *   gtk_entry_get_inner_border          (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
This function returns the entry's <span class="type">"inner-border"</span> property. See
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-inner-border" title="gtk_entry_set_inner_border ()"><code class="function">gtk_entry_set_inner_border()</code></a> for more information.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the entry's <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none was set. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-width-chars"></a><h3>gtk_entry_get_width_chars ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_entry_get_width_chars           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Gets the value set by <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-width-chars" title="gtk_entry_set_width_chars ()"><code class="function">gtk_entry_set_width_chars()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>number of chars to request space for, or negative if unset</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-activates-default"></a><h3>gtk_entry_set_activates_default ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_activates_default     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre>
<p>
If <em class="parameter"><code>setting</code></em> is <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, pressing Enter in the <em class="parameter"><code>entry</code></em> will activate the default
widget for the window containing the entry. This usually means that
the dialog box containing the entry will be closed, since the default
widget is usually one of the dialog buttons.
</p>
<p>
(For experts: if <em class="parameter"><code>setting</code></em> is <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the entry calls
<a class="link" href="gtk3-GtkWindow.html#gtk-window-activate-default" title="gtk_window_activate_default ()"><code class="function">gtk_window_activate_default()</code></a> on the window containing the entry, in
the default handler for the <span class="type">"activate"</span> signal.)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to activate window's default widget on Enter keypress</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-has-frame"></a><h3>gtk_entry_set_has_frame ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_has_frame             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre>
<p>
Sets whether the entry has a beveled frame around it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
<td>new value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-inner-border"></a><h3>gtk_entry_set_inner_border ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_inner_border          (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> *border</code></em>);</pre>
<p>
Sets <code class="literal">entry</code>'s inner-border property to <code class="literal">border</code>, or clears it if <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
is passed. The inner-border is the area around the entry's text, but
inside its frame.
</p>
<p>
If set, this property overrides the inner-border style property.
Overriding the style-provided border is useful when you want to do
in-place editing of some text in a canvas or list widget, where
pixel-exact positioning of the entry is important.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>border</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-width-chars"></a><h3>gtk_entry_set_width_chars ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_width_chars           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_chars</code></em>);</pre>
<p>
Changes the size request of the entry to be about the right size
for <em class="parameter"><code>n_chars</code></em> characters. Note that it changes the size
<span class="emphasis"><em>request</em></span>, the size can still be affected by
how you pack the widget into containers. If <em class="parameter"><code>n_chars</code></em> is -1, the
size reverts to the default entry size.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_chars</code></em> :</span></p></td>
<td>width in chars</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-invisible-char"></a><h3>gtk_entry_get_invisible_char ()</h3>
<pre class="programlisting"><a href="../glib/glib-Unicode-Manipulation.html#gunichar"><span class="returnvalue">gunichar</span></a>            gtk_entry_get_invisible_char        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Retrieves the character displayed in place of the real characters
for entries with visibility set to false. See <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-invisible-char" title="gtk_entry_set_invisible_char ()"><code class="function">gtk_entry_set_invisible_char()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the current invisible char, or 0, if the entry does not
show invisible text at all.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-alignment"></a><h3>gtk_entry_set_alignment ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_alignment             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> xalign</code></em>);</pre>
<p>
Sets the alignment for the contents of the entry. This controls
the horizontal positioning of the contents when the displayed
text is shorter than the width of the entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td>
<td>The horizontal alignment, from 0 (left) to 1 (right).
Reversed for RTL layouts</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-alignment"></a><h3>gtk_entry_get_alignment ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gfloat"><span class="returnvalue">gfloat</span></a>              gtk_entry_get_alignment             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Gets the value set by <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-alignment" title="gtk_entry_set_alignment ()"><code class="function">gtk_entry_set_alignment()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the alignment</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-overwrite-mode"></a><h3>gtk_entry_set_overwrite_mode ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_overwrite_mode        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> overwrite</code></em>);</pre>
<p>
Sets whether the text is overwritten when typing in the <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>overwrite</code></em> :</span></p></td>
<td>new value</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-overwrite-mode"></a><h3>gtk_entry_get_overwrite_mode ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_entry_get_overwrite_mode        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Gets the value set by <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-overwrite-mode" title="gtk_entry_set_overwrite_mode ()"><code class="function">gtk_entry_set_overwrite_mode()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the text is overwritten when typing.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-layout"></a><h3>gtk_entry_get_layout ()</h3>
<pre class="programlisting"><a href="../pango/pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> *       gtk_entry_get_layout                (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Gets the <a href="../pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> used to display the entry.
The layout is useful to e.g. convert text positions to
pixel positions, in combination with <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-layout-offsets" title="gtk_entry_get_layout_offsets ()"><code class="function">gtk_entry_get_layout_offsets()</code></a>.
The returned layout is owned by the entry and must not be 
modified or freed by the caller.
</p>
<p>
Keep in mind that the layout text may contain a preedit string, so
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-layout-index-to-text-index" title="gtk_entry_layout_index_to_text_index ()"><code class="function">gtk_entry_layout_index_to_text_index()</code></a> and
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-text-index-to-layout-index" title="gtk_entry_text_index_to_layout_index ()"><code class="function">gtk_entry_text_index_to_layout_index()</code></a> are needed to convert byte
indices in the layout to byte indices in the entry contents.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a href="../pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> for this entry. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-layout-offsets"></a><h3>gtk_entry_get_layout_offsets ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_get_layout_offsets        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y</code></em>);</pre>
<p>
Obtains the position of the <a href="../pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> used to render text
in the entry, in widget coordinates. Useful if you want to line
up the text in an entry with some other text, e.g. when using the
entry to implement editable cells in a sheet widget.
</p>
<p>
Also useful to convert mouse events into coordinates inside the
<a href="../pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>, e.g. to take some action if some part of the entry text
is clicked.
</p>
<p>
Note that as the user scrolls around in the entry the offsets will
change; you'll need to connect to the "notify::scroll-offset"
signal to track this. Remember when using the <a href="../pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
functions you need to convert to and from pixels using
<a href="../pango/pango-Glyph-Storage.html#PANGO-PIXELS:CAPS"><code class="function">PANGO_PIXELS()</code></a> or <a href="../pango/pango-Glyph-Storage.html#PANGO-SCALE:CAPS"><span class="type">PANGO_SCALE</span></a>.
</p>
<p>
Keep in mind that the layout text may contain a preedit string, so
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-layout-index-to-text-index" title="gtk_entry_layout_index_to_text_index ()"><code class="function">gtk_entry_layout_index_to_text_index()</code></a> and
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-text-index-to-layout-index" title="gtk_entry_text_index_to_layout_index ()"><code class="function">gtk_entry_text_index_to_layout_index()</code></a> are needed to convert byte
indices in the layout to byte indices in the entry contents.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>location to store X offset of layout, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>location to store Y offset of layout, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-layout-index-to-text-index"></a><h3>gtk_entry_layout_index_to_text_index ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_entry_layout_index_to_text_index
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> layout_index</code></em>);</pre>
<p>
Converts from a position in the entry contents (returned
by <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-text" title="gtk_entry_get_text ()"><code class="function">gtk_entry_get_text()</code></a>) to a position in the
entry's <a href="../pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> (returned by <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-layout" title="gtk_entry_get_layout ()"><code class="function">gtk_entry_get_layout()</code></a>,
with text retrieved via <a href="../pango/pango-Layout-Objects.html#pango-layout-get-text"><code class="function">pango_layout_get_text()</code></a>).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>layout_index</code></em> :</span></p></td>
<td>byte index into the entry layout text</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>byte index into the entry contents</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-text-index-to-layout-index"></a><h3>gtk_entry_text_index_to_layout_index ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_entry_text_index_to_layout_index
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> text_index</code></em>);</pre>
<p>
Converts from a position in the entry's <a href="../pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> (returned by
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-layout" title="gtk_entry_get_layout ()"><code class="function">gtk_entry_get_layout()</code></a>) to a position in the entry contents
(returned by <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-text" title="gtk_entry_get_text ()"><code class="function">gtk_entry_get_text()</code></a>).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_index</code></em> :</span></p></td>
<td>byte index into the entry contents</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>byte index into the entry layout text</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-max-length"></a><h3>gtk_entry_get_max_length ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_entry_get_max_length            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Retrieves the maximum allowed length of the text in
<em class="parameter"><code>entry</code></em>. See <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-max-length" title="gtk_entry_set_max_length ()"><code class="function">gtk_entry_set_max_length()</code></a>.
</p>
<p>
This is equivalent to:
</p>
<p>
</p>
<div class="informalexample"><pre class="programlisting">
gtk_entry_buffer_get_max_length (gtk_entry_get_buffer (entry));
</pre></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the maximum allowed number of characters
in <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>, or 0 if there is no maximum.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-visibility"></a><h3>gtk_entry_get_visibility ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_entry_get_visibility            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Retrieves whether the text in <em class="parameter"><code>entry</code></em> is visible. See
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-visibility" title="gtk_entry_set_visibility ()"><code class="function">gtk_entry_set_visibility()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the text is currently visible</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-completion"></a><h3>gtk_entry_set_completion ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_completion            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntryCompletion.html#GtkEntryCompletion" title="struct GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a> *completion</code></em>);</pre>
<p>
Sets <em class="parameter"><code>completion</code></em> to be the auxiliary completion object to use with <em class="parameter"><code>entry</code></em>.
All further configuration of the completion mechanism is done on
<em class="parameter"><code>completion</code></em> using the <a class="link" href="gtk3-GtkEntryCompletion.html#GtkEntryCompletion" title="struct GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a> API. Completion is disabled if
<em class="parameter"><code>completion</code></em> is set to <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>completion</code></em> :</span></p></td>
<td>The <a class="link" href="gtk3-GtkEntryCompletion.html#GtkEntryCompletion" title="struct GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a> or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-completion"></a><h3>gtk_entry_get_completion ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkEntryCompletion.html#GtkEntryCompletion" title="struct GtkEntryCompletion"><span class="returnvalue">GtkEntryCompletion</span></a> * gtk_entry_get_completion           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Returns the auxiliary completion object currently in use by <em class="parameter"><code>entry</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The auxiliary completion object currently
in use by <em class="parameter"><code>entry</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-cursor-hadjustment"></a><h3>gtk_entry_set_cursor_hadjustment ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_cursor_hadjustment    (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a> *adjustment</code></em>);</pre>
<p>
Hooks up an adjustment to the cursor position in an entry, so that when 
the cursor is moved, the adjustment is scrolled to show that position. 
See <a class="link" href="gtk3-GtkScrolledWindow.html#gtk-scrolled-window-get-hadjustment" title="gtk_scrolled_window_get_hadjustment ()"><code class="function">gtk_scrolled_window_get_hadjustment()</code></a> for a typical way of obtaining 
the adjustment.
</p>
<p>
The adjustment has to be in pixel units and in the same coordinate system 
as the entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>adjustment</code></em> :</span></p></td>
<td>an adjustment which should be adjusted when the cursor
is moved, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-cursor-hadjustment"></a><h3>gtk_entry_get_cursor_hadjustment ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     gtk_entry_get_cursor_hadjustment    (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Retrieves the horizontal cursor adjustment for the entry. 
See <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-cursor-hadjustment" title="gtk_entry_set_cursor_hadjustment ()"><code class="function">gtk_entry_set_cursor_hadjustment()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the horizontal cursor adjustment, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
if none has been set. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-progress-fraction"></a><h3>gtk_entry_set_progress_fraction ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_progress_fraction     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> fraction</code></em>);</pre>
<p>
Causes the entry's progress indicator to "fill in" the given
fraction of the bar. The fraction should be between 0.0 and 1.0,
inclusive.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fraction</code></em> :</span></p></td>
<td>fraction of the task that's been completed</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-progress-fraction"></a><h3>gtk_entry_get_progress_fraction ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>             gtk_entry_get_progress_fraction     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Returns the current fraction of the task that's been completed.
See <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-progress-fraction" title="gtk_entry_set_progress_fraction ()"><code class="function">gtk_entry_set_progress_fraction()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a fraction from 0.0 to 1.0</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-progress-pulse-step"></a><h3>gtk_entry_set_progress_pulse_step ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_progress_pulse_step   (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> fraction</code></em>);</pre>
<p>
Sets the fraction of total entry width to move the progress
bouncing block for each call to <a class="link" href="gtk3-GtkEntry.html#gtk-entry-progress-pulse" title="gtk_entry_progress_pulse ()"><code class="function">gtk_entry_progress_pulse()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fraction</code></em> :</span></p></td>
<td>fraction between 0.0 and 1.0</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-progress-pulse-step"></a><h3>gtk_entry_get_progress_pulse_step ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>             gtk_entry_get_progress_pulse_step   (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Retrieves the pulse step set with <a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-progress-pulse-step" title="gtk_entry_set_progress_pulse_step ()"><code class="function">gtk_entry_set_progress_pulse_step()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a fraction from 0.0 to 1.0</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-progress-pulse"></a><h3>gtk_entry_progress_pulse ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_progress_pulse            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Indicates that some progress is made, but you don't know how much.
Causes the entry's progress indicator to enter "activity mode,"
where a block bounces back and forth. Each call to
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-progress-pulse" title="gtk_entry_progress_pulse ()"><code class="function">gtk_entry_progress_pulse()</code></a> causes the block to move by a little bit
(the amount of movement per pulse is determined by
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-progress-pulse-step" title="gtk_entry_set_progress_pulse_step ()"><code class="function">gtk_entry_set_progress_pulse_step()</code></a>).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-im-context-filter-keypress"></a><h3>gtk_entry_im_context_filter_keypress ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_entry_im_context_filter_keypress
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);</pre>
<p>
Allow the <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> input method to internally handle key press
and release events. If this function returns <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then no further
processing should be done for this key event. See
<a class="link" href="gtk3-GtkIMContext.html#gtk-im-context-filter-keypress" title="gtk_im_context_filter_keypress ()"><code class="function">gtk_im_context_filter_keypress()</code></a>.
</p>
<p>
Note that you are expected to call this function from your handler
when overriding key event handling. This is needed in the case when
you need to insert your own key handling between the input method
and the default key event handling of the <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>.
See <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-reset-im-context" title="gtk_text_view_reset_im_context ()"><code class="function">gtk_text_view_reset_im_context()</code></a> for an example of use.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td>
<td>the key event. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> Gdk.EventKey]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the input method handled the key event.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-reset-im-context"></a><h3>gtk_entry_reset_im_context ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_reset_im_context          (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Reset the input method context of the entry if needed.
</p>
<p>
This can be necessary in the case where modifying the buffer
would confuse on-going input method behavior.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkEntryIconPosition"></a><h3>enum GtkEntryIconPosition</h3>
<pre class="programlisting">typedef enum {
  GTK_ENTRY_ICON_PRIMARY,
  GTK_ENTRY_ICON_SECONDARY
} GtkEntryIconPosition;
</pre>
<p>
Specifies the side of the entry at which an icon is placed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="GTK-ENTRY-ICON-PRIMARY:CAPS"></a><span class="term"><code class="literal">GTK_ENTRY_ICON_PRIMARY</code></span></p></td>
<td>At the beginning of the entry (depending on the text direction).
</td>
</tr>
<tr>
<td><p><a name="GTK-ENTRY-ICON-SECONDARY:CAPS"></a><span class="term"><code class="literal">GTK_ENTRY_ICON_SECONDARY</code></span></p></td>
<td>At the end of the entry (depending on the text direction).
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-icon-from-pixbuf"></a><h3>gtk_entry_set_icon_from_pixbuf ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_icon_from_pixbuf      (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code><a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
<p>
Sets the icon shown in the specified position using a pixbuf.
</p>
<p>
If <em class="parameter"><code>pixbuf</code></em> is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, no icon will be shown in the specified position.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>Icon position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
<td>A <a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-icon-from-stock"></a><h3>gtk_entry_set_icon_from_stock ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_icon_from_stock       (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>);</pre>
<p>
Sets the icon shown in the entry at the specified position from
a stock image.
</p>
<p>
If <em class="parameter"><code>stock_id</code></em> is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, no icon will be shown in the specified position.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>Icon position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stock_id</code></em> :</span></p></td>
<td>The name of the stock item, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-icon-from-icon-name"></a><h3>gtk_entry_set_icon_from_icon_name ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_icon_from_icon_name   (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>);</pre>
<p>
Sets the icon shown in the entry at the specified position
from the current icon theme.
</p>
<p>
If the icon name isn't known, a "broken image" icon will be displayed
instead.
</p>
<p>
If <em class="parameter"><code>icon_name</code></em> is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, no icon will be shown in the specified position.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>The position at which to set the icon</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_name</code></em> :</span></p></td>
<td>An icon name, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-icon-from-gicon"></a><h3>gtk_entry_set_icon_from_gicon ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_icon_from_gicon       (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code><a href="../gio/GIcon.html"><span class="type">GIcon</span></a> *icon</code></em>);</pre>
<p>
Sets the icon shown in the entry at the specified position
from the current icon theme.
If the icon isn't known, a "broken image" icon will be displayed
instead.
</p>
<p>
If <em class="parameter"><code>icon</code></em> is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, no icon will be shown in the specified position.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>The position at which to set the icon</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon</code></em> :</span></p></td>
<td>The icon to set, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-icon-storage-type"></a><h3>gtk_entry_get_icon_storage_type ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkImage.html#GtkImageType" title="enum GtkImageType"><span class="returnvalue">GtkImageType</span></a>        gtk_entry_get_icon_storage_type     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);</pre>
<p>
Gets the type of representation being used by the icon
to store image data. If the icon has no image data,
the return value will be <a class="link" href="gtk3-GtkImage.html#GTK-IMAGE-EMPTY:CAPS"><code class="literal">GTK_IMAGE_EMPTY</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>Icon position</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>image representation being used</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-icon-pixbuf"></a><h3>gtk_entry_get_icon_pixbuf ()</h3>
<pre class="programlisting"><a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         gtk_entry_get_icon_pixbuf           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);</pre>
<p>
Retrieves the image used for the icon.
</p>
<p>
Unlike the other methods of setting and getting icon data, this
method will work regardless of whether the icon was set using a
<a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, a <a href="../gio/GIcon.html"><span class="type">GIcon</span></a>, a stock item, or an icon name.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>Icon position</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no icon is
set for this position. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-icon-stock"></a><h3>gtk_entry_get_icon_stock ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_entry_get_icon_stock            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);</pre>
<p>
Retrieves the stock id used for the icon, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is
no icon or if the icon was set by some other method (e.g., by
pixbuf, icon name or gicon).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>Icon position</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A stock id, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no icon is set or if the icon
wasn't set from a stock id</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-icon-name"></a><h3>gtk_entry_get_icon_name ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_entry_get_icon_name             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);</pre>
<p>
Retrieves the icon name used for the icon, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is
no icon or if the icon was set by some other method (e.g., by
pixbuf, stock or gicon).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>Icon position</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>An icon name, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no icon is set or if the icon
wasn't set from an icon name</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-icon-gicon"></a><h3>gtk_entry_get_icon_gicon ()</h3>
<pre class="programlisting"><a href="../gio/GIcon.html"><span class="returnvalue">GIcon</span></a> *             gtk_entry_get_icon_gicon            (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);</pre>
<p>
Retrieves the <a href="../gio/GIcon.html"><span class="type">GIcon</span></a> used for the icon, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is
no icon or if the icon was set by some other method (e.g., by
stock, pixbuf, or icon name).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>Icon position</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a href="../gio/GIcon.html"><span class="type">GIcon</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no icon is set
or if the icon is not a <a href="../gio/GIcon.html"><span class="type">GIcon</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-icon-activatable"></a><h3>gtk_entry_set_icon_activatable ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_icon_activatable      (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> activatable</code></em>);</pre>
<p>
Sets whether the icon is activatable.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>Icon position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>activatable</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the icon should be activatable</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-icon-activatable"></a><h3>gtk_entry_get_icon_activatable ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_entry_get_icon_activatable      (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);</pre>
<p>
Returns whether the icon is activatable.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>Icon position</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the icon is activatable.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-icon-sensitive"></a><h3>gtk_entry_set_icon_sensitive ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_icon_sensitive        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> sensitive</code></em>);</pre>
<p>
Sets the sensitivity for the specified icon.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>Icon position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sensitive</code></em> :</span></p></td>
<td>Specifies whether the icon should appear
sensitive or insensitive</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-icon-sensitive"></a><h3>gtk_entry_get_icon_sensitive ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_entry_get_icon_sensitive        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);</pre>
<p>
Returns whether the icon appears sensitive or insensitive.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>Icon position</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the icon is sensitive.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-icon-at-pos"></a><h3>gtk_entry_get_icon_at_pos ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_entry_get_icon_at_pos           (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
<p>
Finds the icon at the given position and return its index. The
position's coordinates are relative to the <em class="parameter"><code>entry</code></em>'s top left corner.
If <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em> doesn't lie inside an icon, -1 is returned.
This function is intended for use in a <span class="type">"query-tooltip"</span>
signal handler.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>the x coordinate of the position to fine</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>the y coordinate of the position to find</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the index of the icon at the given position, or -1</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-icon-tooltip-text"></a><h3>gtk_entry_set_icon_tooltip_text ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_icon_tooltip_text     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *tooltip</code></em>);</pre>
<p>
Sets <em class="parameter"><code>tooltip</code></em> as the contents of the tooltip for the icon
at the specified position.
</p>
<p>
Use <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>tooltip</code></em> to remove an existing tooltip.
</p>
<p>
See also <a class="link" href="gtk3-GtkWidget.html#gtk-widget-set-tooltip-text" title="gtk_widget_set_tooltip_text ()"><code class="function">gtk_widget_set_tooltip_text()</code></a> and 
<a class="link" href="gtk3-GtkEntry.html#gtk-entry-set-icon-tooltip-markup" title="gtk_entry_set_icon_tooltip_markup ()"><code class="function">gtk_entry_set_icon_tooltip_markup()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>the icon position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>tooltip</code></em> :</span></p></td>
<td>the contents of the tooltip for the icon, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-icon-tooltip-text"></a><h3>gtk_entry_get_icon_tooltip_text ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             gtk_entry_get_icon_tooltip_text     (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);</pre>
<p>
Gets the contents of the tooltip on the icon at the specified 
position in <em class="parameter"><code>entry</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>the icon position</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the tooltip text, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. Free the returned string
with <a href="../glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when done.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-icon-tooltip-markup"></a><h3>gtk_entry_set_icon_tooltip_markup ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_icon_tooltip_markup   (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *tooltip</code></em>);</pre>
<p>
Sets <em class="parameter"><code>tooltip</code></em> as the contents of the tooltip for the icon at
the specified position. <em class="parameter"><code>tooltip</code></em> is assumed to be marked up with
the <a href="../pango/PangoMarkupFormat.html">Pango text markup language</a>.
</p>
<p>
Use <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>tooltip</code></em> to remove an existing tooltip.
</p>
<p>
See also <a class="link" href="gtk3-GtkWidget.html#gtk-widget-set-tooltip-markup" title="gtk_widget_set_tooltip_markup ()"><code class="function">gtk_widget_set_tooltip_markup()</code></a> and 
<code class="function">gtk_enty_set_icon_tooltip_text()</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>the icon position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>tooltip</code></em> :</span></p></td>
<td>the contents of the tooltip for the icon, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-icon-tooltip-markup"></a><h3>gtk_entry_get_icon_tooltip_markup ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             gtk_entry_get_icon_tooltip_markup   (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>);</pre>
<p>
Gets the contents of the tooltip on the icon at the specified 
position in <em class="parameter"><code>entry</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>the icon position</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the tooltip text, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. Free the returned string
with <a href="../glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when done.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-set-icon-drag-source"></a><h3>gtk_entry_set_icon_drag_source ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_set_icon_drag_source      (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Selections.html#GtkTargetList" title="GtkTargetList"><span class="type">GtkTargetList</span></a> *target_list</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Drag-and-Drop.html#GdkDragAction"><span class="type">GdkDragAction</span></a> actions</code></em>);</pre>
<p>
Sets up the icon at the given position so that GTK+ will start a drag
operation when the user clicks and drags the icon.
</p>
<p>
To handle the drag operation, you need to connect to the usual
<span class="type">"drag-data-get"</span> (or possibly <span class="type">"drag-data-delete"</span>)
signal, and use <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-current-icon-drag-source" title="gtk_entry_get_current_icon_drag_source ()"><code class="function">gtk_entry_get_current_icon_drag_source()</code></a> in
your signal handler to find out if the drag was started from
an icon.
</p>
<p>
By default, GTK+ uses the icon as the drag icon. You can use the 
<span class="type">"drag-begin"</span> signal to set a different icon. Note that you 
have to use <a href="../gobject/gobject-Signals.html#g-signal-connect-after"><code class="function">g_signal_connect_after()</code></a> to ensure that your signal handler
gets executed after the default handler.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <span class="type">GtkIconEntry</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>icon position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>target_list</code></em> :</span></p></td>
<td>the targets (data formats) in which the data can be provided</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>actions</code></em> :</span></p></td>
<td>a bitmask of the allowed drag actions</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-current-icon-drag-source"></a><h3>gtk_entry_get_current_icon_drag_source ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_entry_get_current_icon_drag_source
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>);</pre>
<p>
Returns the index of the icon which is the source of the current
DND operation, or -1.
</p>
<p>
This function is meant to be used in a <span class="type">"drag-data-get"</span>
callback.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <span class="type">GtkIconEntry</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>index of the icon which is the source of the current
DND operation, or -1.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-entry-get-icon-area"></a><h3>gtk_entry_get_icon_area ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_entry_get_icon_area             (<em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkEntry.html#GtkEntryIconPosition" title="enum GtkEntryIconPosition"><span class="type">GtkEntryIconPosition</span></a> icon_pos</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *icon_area</code></em>);</pre>
<p>
Gets the area where entry's icon at <em class="parameter"><code>icon_pos</code></em> is drawn.
This function is useful when drawing something to the
entry in a draw callback.
</p>
<p>
If the entry is not realized or has no icon at the given position,
<em class="parameter"><code>icon_area</code></em> is filled with zeros.
</p>
<p>
See also <a class="link" href="gtk3-GtkEntry.html#gtk-entry-get-text-area" title="gtk_entry_get_text_area ()"><code class="function">gtk_entry_get_text_area()</code></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_pos</code></em> :</span></p></td>
<td>Icon position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_area</code></em> :</span></p></td>
<td>Return location for the icon's area. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
</div>
<div class="refsect1">
<a name="gtk3-GtkEntry.see-also"></a><h2>See Also</h2>
<a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>, <a class="link" href="gtk3-GtkEntryCompletion.html#GtkEntryCompletion" title="struct GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>